package com.ssy.lingxi.member.merchant.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 会员考察创建来源枚举
 * @author 万宁
 * @version 2.0.0
 * @date 2021-05-24
 */
public enum MemberInspectSourceEnum {
    /**
     * 通过会员能力的接口创建 - 0
     */
    BY_MEMBER_ABILITY(0, "通过会员能力功能创建"),

    /**
     * 通过会员审核相关流程创建 - 1
     */
    BY_MEMBER_PROCESS(1, "通过会员审核相关流程创建");

    MemberInspectSourceEnum(Integer code, String msg) {
        this.code = code;
    }

    private final Integer code;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }
}
